<template>
  <div class="title">{{ title }}</div>
</template>

<script>
import {defineComponent} from 'vue';

export default defineComponent({
  name: 'CSSVBind',
  data() {
    return {
      title: '设置CSS变量值',
      color: 'pink'
    };
  }
});
</script>

<style scoped>
.title {
  color: v-bind(color);
}
</style>